Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime) support snapshot testing #38

Merged
merged 3 commits into from
Aug 20, 2019
Merged

Conversation

sam-goodwin
Copy link
Owner

Mitigates #35

Assume we are running as a unit test when process.mainModule is undefined. This case happens when the node application is not invoked directly with node, usually when the app is loaded from a unit test. Luckily, the CDK invokes the app as an ordinary node process.

This change unblocks snapshot testing - so I also added snapshot tests to detect regressions in the CloudFormation stacks of the example apps.

Would still like to find a better solution.

@sam-goodwin sam-goodwin added the runtime Runtime code such as Lambda, EC2, ECS label Aug 17, 2019
@sam-goodwin
Copy link
Owner Author

Tracking the unfortunate dependency on babel here #40

@sam-goodwin sam-goodwin changed the title Support snapshot testing fix(runtime) support snapshot testing Aug 17, 2019
@sam-goodwin sam-goodwin merged commit 58e96af into master Aug 20, 2019
@sam-goodwin sam-goodwin deleted the snapshot-testing branch August 20, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime Runtime code such as Lambda, EC2, ECS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant